package com.zy.cat.entity.dev;

import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Index;
import javax.persistence.Table;

import com.zy.cat.entity.primary.CatDevBeanVideoHistoryPrimary;
import com.zy.cat.entity.primary.CatDevFertilizerVideoHistoryPrimary;
import com.zy.cat.entity.primary.CatDevZJInviteIncomeHistoryPrimary;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @info 用户通过看视频领取肥料记录
 * @author Link
 * @date 2021-01-22 09:14
 */
@Entity
@Table(name = "zy_cat_video_bean_history", indexes = {
		@Index(name = "pid", columnList = "pid"),
 		@Index(name = "ctime", columnList = "ctime")})
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户看视频领取肥料记录")
@IdClass(CatDevFertilizerVideoHistoryPrimary.class)
public class CatDevFertilizerVideoHistory {
	
	@Id
	@Column(columnDefinition = "VARCHAR(30) NOT NULL  COMMENT '创建时间'")
	@ApiModelProperty(value = "创建时间", example = "2019-02-22 12:56:56")
	private String ctime;
	
	@Id
	@Column(columnDefinition = "VARCHAR(20) NOT NULL COMMENT '用户账号ID'")
	@ApiModelProperty(value = "用户账号ID", example = "fe53d6a4fa29641")
	private String pid;
	
	@Column(columnDefinition = "BIGINT(10) DEFAULT '0' COMMENT '中奖数(肥料)'")
	@ApiModelProperty(value = "中奖数(肥料)", example = "100")
	private long fertilizer;
	
	@Column(columnDefinition = "INT(2) DEFAULT '0' COMMENT '奖励来源,0.福利中心、1.首页弹窗、2.刮刮卡弹窗、3.便利店弹窗'")
	@ApiModelProperty(value = "奖励来源(0.福利中心、1.首页弹窗、2.刮刮卡弹窗)", example = "0")
	private int ltype;
	
	@Column(columnDefinition = "VARCHAR(20) DEFAULT '-'  COMMENT '最后更新时间'")
	@ApiModelProperty(value = "最后更新时间", example = "2019-02-22 10:10:10")
	private String ltime;

	public CatDevFertilizerVideoHistory(String pid) {
		super();
		this.pid = pid;
	}
}
